title: Javascript Error - Uncaught SyntaxError: Unexpected identifier
body: <p>I am getting a 'Uncaught SyntaxError: Unexpected identifier' on the code below on line 3 in Chrome</p>
  
  <pre><code>function popup_shortlist(sel_id){
      var paramdata=Array();  
      paramdata[0]='&lt;?php echo get_bloginfo('url'); ?&gt;';
      paramdata[1]= $('#'+sel_id).val();
  
      var to_shortlist=false;
      var url='&lt;?php echo bloginfo('url'); ?&gt;/wp-admin/admin-ajax.php';
  
      if($('#'+sel_id).attr('checked')){
          $("#alert_titleid").empty().html('Adding to Shortlist');
          $("#alert_msgid").empty().html('loading...');
          display_alert();  
          var rqpage='add to shortlist';  
  
          var arr_dataval = {
              action: 'instinct_controller',
              rqpage:rqpage,paramdata:paramdata
          };
  
          $.post(ajaxurl,arr_dataval ,function(data){
              $("#alert_msgid").empty().html(data);
          });
  
      }else{
          $("#alert_titleid").empty().html('Removing from Shortlist');
          $("#alert_msgid").empty().html('loading...');
          display_alert();  
          var rqpage='remove from shortlist';
          var arr_dataval = {
              action: 'instinct_controller',
              rqpage:rqpage,
              paramdata:paramdata
          };
          $.post(ajaxurl,arr_dataval ,function(data){
              $("#alert_msgid").empty().html(data);
          });                 
      }   
  }
  </code></pre>