title: JQuery Not "clicking" on Selection with PhantomJS
body: <p>I am trying to teach myself how to better use PhantomJS. </p>
  
  <p>I have a particular selector (shown below) that I am trying to click on. </p>
  
  <pre><code>#s-t-menu &gt; li:nth-child(3) &gt; a
  </code></pre>
  
  <p>I have opened a page, logged in, and now want to follow a link. However, I have been fruitless so far in following this link (logging in was successful). My code is below:</p>
  
  <pre><code>//********SETUP**********\\
  var webPage = require('webpage');
  var page = webPage.create();
  
  
  page.settings.userAgent = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36';
  page.settings.javascriptEnabled = true;
  page.settings.loadImages = false;
  phantom.cookiesEnabled = true;
  phantom.javascriptEnabled = true;
  
  page.onConsoleMessage = function(msg, lineNum, sourceId) {
      console.log(msg);
  };
  //******END SETUP************\\
  
  //******FUNCTIONS************\\
  
                    function click(el){
      var ev = document.createEvent("MouseEvent");
      ev.initMouseEvent(
          "click",
          true /* bubble */, true /* cancelable */,
          window, null,
          0, 0, 0, 0, /* coordinates */
          false, false, false, false, /* modifier keys */
          0 /*left*/, null
      );
      el.dispatchEvent(ev);
  }
  
  //******END FUNCTIONS*******\\
  
  
  //*****OPEN PAGES*****\\
  page.open("https://helphub.me/login", function(status) {
  
      if ( status === "success" ) {
          console.log("Opened Login Page Succesfully \n");
  
          page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", function(){
          page.evaluate(function() {
  
                //*****LOGS IN*****\\
                document.querySelector("#login_header &gt; span.ll &gt; form &gt; input:nth-child(1)").value = "REDACTED_FOR_STACKEXCHANGE";
                document.querySelector("#login_header &gt; span.ll &gt; form &gt; input:nth-child(2)").value = "REDACTED_FOR_STACKEXCHANGE";
                document.querySelector("[name='loginf']").submit();
                console.log("Logged In \n");
  
  
                document.querySelector("#s-t-menu &gt; li:nth-child(3) &gt; a").click();
  
  
  
          });
          });
  
                      //*****SCREENSHOT FOR EVALUATION*****\\
  
                      window.setTimeout(function () {
            page.render('/Screenshots/LoggedIn.png');
            phantom.exit();
          }, 5000);
             //******SCREENSHOT END****************\\
  
  
     }
  });
  //*****END OPEN PAGES*****\\
  </code></pre>
  
  <p>In the current state, I receive the following in my console:</p>
  
  <pre><code>Opened Login Page Succesfully 
  
  The page at https://helphub.me/login ran insecure content from http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js.
  
  Facebook Pixel Warning: Multiple pixels with conflicting versions were detected on this page
  Logged In 
  
  TypeError: null is not an object (evaluating 'document.querySelector("#s-t-menu &gt; li:nth-child(3) &gt; a").click')
  
    undefined:10
    :14
  Facebook Pixel Warning: Multiple pixels with conflicting versions were detected on this page
  </code></pre>
  
  <p>I have also tried:</p>
  
  <pre><code>$("#s-t-menu &gt; li:nth-child(3) &gt; a").click();
  </code></pre>
  
  <p>and get</p>
  
  <pre><code>Opened Login Page Succesfully 
  
  The page at https://helphub.me/login ran insecure content from http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js.
  
  Logged In 
  
  Facebook Pixel Warning: Multiple pixels with conflicting versions were detected on this page
  </code></pre>
  
  <p>In all of these cases, when I go to check my screenshot, I am now at the correct screen; I have just logged in.</p>
  
  <p>When I run the command I include </p>
  
  <pre><code> --ignore-ssl-errors=yes
  </code></pre>
  
  <p>Finally, I have tried in Google Chrome's console </p>
  
  <pre><code>document.querySelector("#s-t-menu &gt; li:nth-child(3) &gt; a").click();
  </code></pre>
  
  <p>when on the login page, and it works fine. </p>
  
  <p>Any help appreciated! :) </p>
  
  <p>The entire HTML page source is below:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:og="http://ogp.me/ns#"
  xmlns:fb="http://www.facebook.com/2008/fbml"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta property="og:type" content="website" /&gt;
  &lt;meta property="og:title" content="" /&gt;
  &lt;meta property="og:url" content="https://helphub.me/dashboard/?signup=success" /&gt;
  &lt;meta property="og:description" content="" /&gt;
  
              &lt;meta name="description" content="Get help from expert online tutors over online messaging and tutoring calls, 24/7. Get started with online tutoring today!" /&gt;
      &lt;meta property="og:description" content="HelpHub connects students with tutors over online messaging and tutoring calls." /&gt;
      &lt;link rel="image_src" href="https://helphub.me/img/ogimage.jpg" /&gt;
  &lt;meta property="og:image" content="https://helphub.me/img/ogimage.jpg" /&gt;
  &lt;meta property="og:type" content="website" /&gt;
  &lt;meta property="og:title" content="Dashboard – HelpHub" /&gt;
  &lt;meta property="og:url" content="https://helphub.me/" /&gt;
          &lt;title&gt;Dashboard – HelpHub&lt;/title&gt;
      &lt;base href="https://helphub.me/" /&gt;
  &lt;link href="style.css" media="screen" rel="stylesheet" type="text/css" /&gt;
  &lt;meta name="apple-itunes-app" content="app-id=915930220"&gt;
  &lt;link href="https://helphub.me/bootstrap.css" media="screen" rel="stylesheet" type="text/css" /&gt;
  &lt;link href="https://helphub.me/animations.css" media="screen" rel="stylesheet" type="text/css" /&gt;
  &lt;link rel="stylesheet" type="text/css" href="jquery.timepicker.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" href="https://helphub.me/d_base.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /&gt;
  &lt;link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/qtip2/2.2.0/jquery.qtip.min.css" /&gt;
  &lt;link type="text/css" rel="stylesheet" media="all" href="chat/css/chat.css" /&gt;
  &lt;script type="text/javascript" src="https://helphub.me/javascript/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
  &lt;script src='https://static.opentok.com/v2/js/opentok.min.js'&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/inputfocus.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/functions.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript" src="chat/js/chatjs.php"&gt;&lt;/script&gt;
  
  &lt;!--[if lte IE 7]&gt;
  &lt;link type="text/css" rel="stylesheet" media="all" href="css/screen_ie.css" /&gt;
  &lt;![endif]--&gt;
  
  &lt;script type="text/javascript" src="//use.typekit.net/pyo7dcc.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;try{Typekit.load();}catch(e){}&lt;/script&gt;
  
  &lt;script src="javascript/call_tutor.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="javascript/accept_call.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" type="text/css" href="css/whiteboard.css" /&gt;
  &lt;link rel="stylesheet" href="/jquery.fancybox.css?v=2.1.4" type="text/css" media="screen" /&gt;
  &lt;link href="flat.css" rel="stylesheet" /&gt;
  &lt;link rel="stylesheet" href="css/basics.css"&gt;
  &lt;link rel="stylesheet" href="css/font-awesome.min.css"&gt;
  
  &lt;script type="text/javascript" src="js/jquery.datetimepicker.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/tutor_dashboard.js"&gt;&lt;/script&gt;
  &lt;link href="/css/tutor_dashboard.css" media="screen" rel="stylesheet" type="text/css" /&gt;
  &lt;link rel="stylesheet" type="text/css" href="css/jquery.datetimepicker.css"/ &gt;
      &lt;script type="text/javascript"&gt;(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===e.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f);b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&amp;&amp;(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==
  typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&amp;&amp;(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.track_charge people.clear_charges people.delete_user".split(" ");for(g=0;g&lt;i.length;g++)f(c,i[g]);
  b._i.push([a,e,d])};b.__SV=1.2}})(document,window.mixpanel||[]);
  mixpanel.init("96c84aa9e26ab91ee361872c1c01a430");&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script type="text/javascript"&gt;
  var WRInitTime=(new Date()).getTime();
  &lt;/script&gt;
  
  
      &lt;div id="header"&gt;
          &lt;ul id="call-notification"&gt;&lt;/ul&gt;
          &lt;div class="container"&gt;
              &lt;div class="top"&gt;
                  &lt;h4 class="logo"&gt;&lt;a href="./dashboard" class="indent"&gt;HelpHub&lt;/a&gt;&lt;/h4&gt;
  
  
  
  
  
                                  &lt;span class="searchheader"&gt;
  
                      &lt;form method="get" action="/search/" name="searchheader"&gt;
                          &lt;div class='bbox'&gt;
                              &lt;input class="searchh" name="q" value="Search tutors by subject, school, or city..." id="search" /&gt;
                          &lt;/div&gt;
                      &lt;/form&gt;
  
                  &lt;/span&gt;
  
  
                  &lt;span class="usettings"&gt;
                      &lt;i class="settings"&gt;&lt;a href="/settings"&gt;&lt;/a&gt;&lt;/i&gt;
                      &lt;ul class="settings_pulldown settings_pulldown_s"&gt;
                          &lt;li&gt;&lt;h4&gt;Your credits are: &lt;br&gt;&lt;span id="show_my_user_balance"&gt;$0.00&lt;/span&gt;&lt;span id="my_user_balance"&gt;0&lt;/span&gt;&lt;/h4&gt;&lt;br&gt;&lt;a href="/settings/billing" class="btn btn-success vam"&gt;Add Credits&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="/settings"&gt;Profile Settings&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="/settings/billing"&gt;Add Credits&lt;/a&gt;&lt;/li&gt;
                                                  &lt;li&gt;&lt;a href="/settings/tutoring"&gt;Tutoring Settings&lt;/a&gt;&lt;/li&gt; 
                                                  &lt;li&gt;&lt;a href="/logout.php"&gt;Logout&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
  
                                          &lt;a class="msgs_h" href="/dashboard"&gt;&lt;i class="glyphicon glyphicon-dashboard"&gt;&lt;/i&gt;&lt;/a&gt;
  
  
  
                      &lt;a class="msgs_h" href="/messages"&gt;&lt;i class="glyphicon glyphicon-envelope"&gt;&lt;/i&gt;&lt;/a&gt;
  
                      &lt;i class="ask tooltipthis" data-tooltip="Post a question and reach all of our tutors at once. You will be notified when you receive answers."&gt;&lt;a data-toggle="modal" data-target="#AskModal" href="#"&gt;&lt;/a&gt;&lt;/i&gt;
                      &lt;a href="/TestGroundTutoring" class="myavatar"&gt;&lt;img class="avatar_tip" alt="" src="img/noavatar.jpg" /&gt;&lt;/a&gt;
                  &lt;/span&gt; 
  
  
  
  
  
  
                              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  
  
  &lt;div class="main_dashboard_container"&gt;
      &lt;div id="dashboard_sidebar"&gt;
          &lt;div class="sidebar_content_dashboard"&gt;
              &lt;div class="sidebar_uinfo"&gt;
                  &lt;div class="s-u-photo"&gt;
                      &lt;a href="/TestGroundTutoring"&gt;&lt;img alt="" src="img/noavatar.jpg" /&gt;&lt;/a&gt;
                  &lt;/div&gt;
                  &lt;span class="s-u-balance"&gt;
                      Your earnings: &lt;strong&gt;$0.00&lt;/strong&gt;
                  &lt;/span&gt;
              &lt;/div&gt;  
              &lt;ul id="s-t-menu"&gt;
                  &lt;li&gt;&lt;a href="/dashboard"&gt;&lt;i class="fa fa-tachometer"&gt;&lt;/i&gt; Dashboard&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="/messages"&gt;&lt;i class="fa fa-envelope"&gt;&lt;/i&gt;Messages&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="/questions"&gt;&lt;i class="fa fa-question-circle"&gt;&lt;/i&gt;Questions&lt;/a&gt;&lt;/li&gt;
  
  
                  &lt;li&gt;&lt;a href="/calendar"&gt;&lt;i class="fa fa-calendar"&gt;&lt;/i&gt;Calendar&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="/dashboard/group-tutoring"&gt;&lt;i class="fa fa-users"&gt;&lt;/i&gt;Group Tutoring&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;
                      &lt;a href="/settings"&gt;&lt;i class="fa fa-cog"&gt;&lt;/i&gt;Settings&lt;/a&gt;
                      &lt;ul class="n_menu"&gt;
                          &lt;li&gt;&lt;a href="/settings"&gt;&lt;i class="fa fa-user"&gt;&lt;/i&gt;Profile Settings&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="/settings/tutoring"&gt;&lt;i class="fa fa-cogs"&gt;&lt;/i&gt;Tutoring Settings&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="/settings/availability"&gt;&lt;i class="fa fa-clock-o"&gt;&lt;/i&gt;Set Availability&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href="/settings/payments"&gt;&lt;i class="fa fa-money"&gt;&lt;/i&gt;Payment Settings&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="middle-container-d"&gt;
          &lt;div class="container_dashboard"&gt;
  
  
          &lt;div class="dashboard_widget"&gt;
                  &lt;h2&gt;Twitter Leads&lt;/h2&gt;
  
                  &lt;p class="tw_leads_link"&gt;If you'd like to share your HelpHub profile with people on Twitter, simply tweet this link:
                      https://helphub.me/TestGroundTutoring&lt;/p&gt;
  
                  &lt;div class="dash_scrollable twitter_leads"&gt;
                  &lt;p&gt;Twitter leads are temporarily unavailable. Please check back later.&lt;/p&gt;
                  &lt;/div&gt;
  
              &lt;/div&gt;
  
  
  
              &lt;div class="dashboard_widget"&gt;
                  &lt;h2&gt;Your profile visibility&lt;/h2&gt;
                  &lt;div class="dash_scrollable"&gt;
                      &lt;div class="tutor_iq_section"&gt;
                          &lt;h4&gt;Your &lt;em&gt;Tutor Karma&lt;/em&gt; is&lt;/h3&gt;
                          &lt;h3&gt;
                              100                     &lt;/h3&gt;
                          &lt;p&gt;Your &lt;em&gt;Tutor Karma&lt;/em&gt; increases your visibility on the site. These are some ways you can increase it:&lt;/p&gt;
                      &lt;/div&gt;
  
                      &lt;div id="show_dashboard_tips"&gt;&lt;/div&gt;
  
                      &lt;script type="text/javascript"&gt;
  
                          $(document).ready(function(){
                              get_dashboard_tips();
                          });
  
                      &lt;/script&gt;
  
  
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="dashboard_widget"&gt;
                  &lt;h2&gt;Who's seen your profile&lt;/h2&gt;
                  &lt;div class="dash_scrollable"&gt;
                      &lt;p&gt;Nobody has recently seen your profile.&lt;/p&gt;               &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="dashboard_widget"&gt;
                  &lt;h2&gt;Your account activity&lt;/h2&gt;
                  &lt;div class="dash_scrollable"&gt;
                      &lt;p&gt;Your account hasn't had any recent tutoring activity.&lt;/p&gt;&lt;p&gt;Every time you call a tutor, you will see the amount spent and the length of the call.&lt;/p&gt;               &lt;/div&gt;
              &lt;/div&gt;
  
  
          &lt;/div&gt;
      &lt;/div&gt;
  
  
  
  
  
  &lt;/div&gt;
  &lt;!-- end of lp container --&gt;
  
  &lt;div id="AskModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
   &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
    &lt;div class="modal-header"&gt;
      &lt;h2 id="myModalLabel"&gt;Ask a Question&lt;/h2&gt;
    &lt;/div&gt;
     &lt;p class="qa_alert"&gt;Looking for the &lt;strong&gt;&lt;a href="/tutors-forum"&gt;Tutors Forum&lt;/a&gt;&lt;/strong&gt;? Please &lt;strong&gt;&lt;a href="/tutors-forum"&gt;go to the Tutors Forum&lt;/a&gt;&lt;/strong&gt; to post new questions. You can also access the forum from the bottom of the page.&lt;/p&gt;
    &lt;/div&gt;
  &lt;script type="text/javascript"&gt;
  var CE_SNAPSHOT_NAME = "Dashboard";
  &lt;/script&gt;
  
  
  
  &lt;div id="SignUpModal" class="modal hide fade signupmodal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false"&gt;&lt;div class="modal-header"&gt;You need to create an account to continue&lt;/div&gt;
  
    &lt;div id="SignUpModalForm"&gt;
        &lt;form method="post" action="/signup" name="signupform" class="signupform"&gt;&lt;p&gt;&lt;label&gt;&lt;strong&gt;Choose a nickname&lt;/strong&gt; (it cannot be changed later)&lt;br&gt;&lt;input type="text" value="" name="nick" maxlenght="60" class="inputsignup"&gt;&lt;/label&gt;&lt;/p&gt;&lt;p&gt;&lt;label&gt;&lt;strong&gt;What's your E-mail?&lt;/strong&gt;&lt;br&gt;&lt;input type="text" value="" name="semail" maxlenght="160" class="inputsignup"&gt;&lt;/label&gt;  &lt;/p&gt;   &lt;p&gt;&lt;label&gt; &lt;strong&gt;Choose a password&lt;/strong&gt;&lt;br&gt;         &lt;input type="password" name="pass" class="inputsignup"&gt;       &lt;/label&gt;       &lt;/p&gt;                             &lt;p&gt;       &lt;label&gt;&lt;input name="agree" class="check" type="checkbox" value="1"&gt; I have read and agree with the &lt;a href="/tos" target="_blank"&gt;Terms of Service&lt;/a&gt;.&lt;/label&gt;     &lt;/p&gt;     &lt;input type="hidden" name="modal" value="1" /&gt;&lt;p class="buttons"&gt;&lt;button type="submit"&gt;Create an account&lt;/button&gt;&lt;/p&gt;   &lt;/form&gt;
    &lt;/div&gt;
      &lt;div class="tutor_become"&gt;
    &lt;a href="/online-tutoring-jobs"&gt;Become a tutor&lt;/a&gt;
    &lt;/div&gt;
  
  &lt;/div&gt;
  
  
  
  
  &lt;footer&gt;
    &lt;div id="footer"&gt;
      &lt;div class="container"&gt;
          &lt;ul class="main_links"&gt;
            &lt;li&gt;&lt;a href="/contact"&gt;Contact us&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="http://blog.helphub.me"&gt;Blog&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="/tutors-forum"&gt;Tutors Forum&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="/campus-ambassadors"&gt;Campus Ambassadors&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="/group-tutoring"&gt;Group Tutoring&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="/press"&gt;Press&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="http://institutions.helphub.com/" target="_blank"&gt;For Institutions&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="http://blog.helphub.me/help-and-support/"&gt;FAQs&lt;/a&gt;&lt;/li&gt;
            &lt;li class="footer_social"&gt;&lt;a href="http://twitter.com/HelpHubHQ" target="_blank"&gt;&lt;i class="fa fa-twitter"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li class="footer_social"&gt;&lt;a href="http://facebook.com/HelpHubHQ" target="_blank"&gt;&lt;i class="fa fa-facebook"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;ul class="footer_badges"&gt;
            &lt;li class="phone"&gt;&lt;i class="fa fa-envelope-o fa-2"&gt;&lt;/i&gt; Questions? &lt;a href="mailto:support@helphub.me"&gt;support@helphub.me&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="https://smarticon.geotrust.com/smarticonprofile?Referer=https://helphub.me"&gt;&lt;img src="https://helphub.me/img/secured.png"&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="https://mixpanel.com/f/partner"&gt;&lt;img src="https://cdn.mxpnl.com/site_media/images/partner/badge_light.png"&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;ul class="footer_copy"&gt;
            &lt;li&gt;&lt;a href="/tos"&gt;Terms of Service&lt;/li&gt;
            &lt;li&gt;&lt;a href="/privacy"&gt;Privacy Policy&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="/academic-policy"&gt;Academic Integrity Policy&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="/careers"&gt;Careers&lt;/a&gt;&lt;/li&gt;
            &lt;li class="copyright_copy"&gt;&amp;copy; HelpHub Services Inc. 2013 - 2017 – All rights reserved.&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  
      &lt;script type="text/javascript"&gt;
      (function(d,s,i,r) {
        if (d.getElementById(i)){return;}
        var n=d.createElement(s),e=d.getElementsByTagName(s)[0];
        n.id=i;n.src='//js.hs-analytics.net/analytics/'+(Math.ceil(new Date()/r)*r)+'/473044.js';
        e.parentNode.insertBefore(n, e);
      })(document,"script","hs-analytics",300000);
    &lt;/script&gt;
      &lt;/div&gt;
  
  &lt;/footer&gt;
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  
  
  
  
  
  &lt;div id="TrialCallModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;&lt;/div&gt;
  
  &lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script&gt;
    window.fbAsyncInit = function() {
      // init the FB JS SDK
      FB.init({
        appId      : '279475605511244',                        // App ID from the app dashboard
        status     : true,                                 // Check Facebook Login status
        xfbml      : true                                  // Look for social plugins on the page
      });
          FB.Event.subscribe('edge.create', call_fb_like_tutor);
          // Additional initialization code such as adding Event Listeners goes here
    };
  
    // Load the SDK asynchronously
    (function(d, s, id){
       var js, fjs = d.getElementsByTagName(s)[0];
       if (d.getElementById(id)) {return;}
       js = d.createElement(s); js.id = id;
       js.src = "//connect.facebook.net/en_US/all.js";
       fjs.parentNode.insertBefore(js, fjs);
     }(document, 'script', 'facebook-jssdk'));
  &lt;/script&gt;
  
  
  
  &lt;script&gt;(function(d, s, id) { 
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&amp;appId=279475605511244";
    fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));&lt;/script&gt;
  
  
  &lt;script&gt;
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  
    ga('create', 'UA-1671208-29', 'helphub.me');
    ga('send', 'pageview');
       ga('set', '&amp;uid', 3 );
  
  &lt;/script&gt;
  
  
  &lt;script type="text/javascript"&gt;
  mixpanel.identify('39796');
  
  
  &lt;/script&gt;
  &lt;div id="video_call" class="modal-video-call hide" tabindex="-1" role="dialog"  aria-hidden="true"&gt;
            &lt;div class="modal-body-video-call"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  
  &lt;audio id="incomming" loop&gt;
    &lt;source src="sounds/incoming.ogg" type="audio/ogg"&gt;
    &lt;source src="sounds/incoming.mp3" type="audio/mpeg"&gt;
  &lt;/audio&gt;
  
  &lt;audio id="im_new"&gt;
    &lt;source src="/msgincoming.ogg" type="audio/ogg"&gt;
    &lt;source src="/msgincoming.mp3" type="audio/mpeg"&gt;
  &lt;/audio&gt;
  
  &lt;audio id="outcomming" loop&gt;
    &lt;source src="sounds/outgoing.ogg" type="audio/ogg"&gt;
    &lt;source src="sounds/outgoing.mp3" type="audio/mpeg"&gt;
  &lt;/audio&gt;
  &lt;script&gt;
    $(window).scroll(function() {
  
      $('#video_animated').each(function(){
      var imagePos = $(this).offset().top;
  
      var topOfWindow = $(window).scrollTop();
        if (imagePos &lt; topOfWindow+400) {
          $(this).addClass("slideRight");
        }
      });
  
      $('#phone_animated').each(function(){
      var imagePos = $(this).offset().top;
  
      var topOfWindow = $(window).scrollTop();
        if (imagePos &lt; topOfWindow+400) {
          $(this).addClass("slideDown");
        }
      });
    });
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  setTimeout(function(){var a=document.createElement("script");
  var b=document.getElementsByTagName("script")[0];
  a.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/0020/0846.js?"+Math.floor(new Date().getTime()/3600000);
  a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1);
  &lt;/script&gt;
  
  &lt;div id="hidden_id"&gt;&lt;/div&gt;
  &lt;div class="searchresultsll displaynone footer_show_search"&gt;
    &lt;div class="container"&gt;
  
    &lt;form method="get" action="/search/" name="searchf" class="advanced_search"&gt;    
  
      &lt;h4&gt;Find a tutor: &lt;/h4&gt;
        &lt;span class='inputbox'&gt;
          &lt;label&gt;Try Math, Chemistry, English...&lt;br /&gt;
  
            &lt;input class="search" value="" id="search" name="q" placeholder="Search tutors, subjects, or schools..." /&gt;
          &lt;/label&gt;
        &lt;/span&gt;
  
  
      &lt;h4&gt;Advanced search:&lt;/h4&gt;
        &lt;span class='inputbox'&gt;
  
      &lt;label&gt;By School:&lt;br /&gt;
        &lt;input class="advanced_input" value="" name="network" placeholder="School name..." /&gt;
      &lt;/label&gt;
  
  
      &lt;label&gt;By City or Location:&lt;br /&gt;
        &lt;input value="" class="advanced_input" name="city" placeholder="Add a city..." /&gt;
      &lt;/label&gt;
  
  
  
  
  
  
  
        &lt;label&gt;Order by:&lt;br /&gt;
          &lt;select name="orderby" onchange="this.form.submit();" size="1" class="minimarginbotton"&gt;
  &lt;option value="relevance"&gt;Relevance&lt;/option&gt;
  &lt;option value="lowest"&gt;Lowest rate&lt;/option&gt;
  &lt;option value="highest"&gt;Highest rate&lt;/option&gt;
          &lt;/select&gt;
        &lt;/label&gt;
  
        &lt;button class="advanced_button" type="submit"&gt;Advanced Search&lt;/button&gt;
        &lt;/span&gt;
      &lt;/form&gt;
  
    &lt;/div&gt;
  &lt;/div&gt;
      &lt;a href="#" id="my_iq" class="bottom_reputation"&gt;
      Your &lt;em&gt;Tutor Karma&lt;/em&gt; is &lt;strong&gt;100&lt;/strong&gt;
    &lt;/a&gt;
  
  
  
  
  &lt;div id="lci"&gt;
    &lt;/div&gt;
  &lt;div id="chat_bottom"&gt;&lt;/div&gt;
  &lt;script type="text/javascript"&gt;
  adroll_adv_id = "GCAP3UVPKVFMVG66HGCIS5";
  adroll_pix_id = "AFRO7VQK2VAA7AI65I3LGG";
  (function () {
  var oldonload = window.onload;
  window.onload = function(){
     __adroll_loaded=true;
     var scr = document.createElement("script");
     var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com");
     scr.setAttribute('async', 'true');
     scr.type = "text/javascript";
     scr.src = host + "/j/roundtrip.js";
     ((document.getElementsByTagName('head') || [null])[0] ||
      document.getElementsByTagName('script')[0].parentNode).appendChild(scr);
     if(oldonload){oldonload()}};
  }());
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
    (function() {
      window._pa = window._pa || {};
          var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
      pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.perfectaudience.com/serve/535058ae72bc7d6622000037.js";
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s);
    })();
  &lt;/script&gt;
  &lt;script&gt;(function() {
    var _fbq = window._fbq || (window._fbq = []);
    if (!_fbq.loaded) {
      var fbds = document.createElement('script');
      fbds.async = true;
      fbds.src = '//connect.facebook.net/en_US/fbds.js';
      var s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(fbds, s);
      _fbq.loaded = true;
    }
    _fbq.push(['addPixelId', '827515187325411']);
  })();
  window._fbq = window._fbq || [];
  window._fbq.push(['track', 'PixelInitialized', {}]);
  &lt;/script&gt;
  &lt;noscript&gt;&lt;img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=827515187325411&amp;amp;ev=PixelInitialized" /&gt;&lt;/noscript&gt;
  &lt;script type="text/javascript" src="https://helphub.me/d_base.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/jquery.scrollTo-1.4.3.1-min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/jquery.fancybox.pack.js?v=2.1.4"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/jquery.fancybox-media.js?v=1.0.0"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/jquery.parallax-1.1.3.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/datepair.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/notify.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/jquery.timepicker.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/js/jquery.qtip.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://helphub.me/js/flatui-checkbox.js"&gt;&lt;/script&gt;
  &lt;script src="https://helphub.me/js/flatui-radio.js"&gt;&lt;/script&gt;
  &lt;script src="https://helphub.me/js/jquery.tagsinput.js"&gt;&lt;/script&gt;
  &lt;script src="//code.jquery.com/ui/1.10.3/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;script src="https://helphub.me/js/jquery.placeholder.js"&gt;&lt;/script&gt;
  &lt;script src="https://helphub.me/js/jquery.stacktable.js"&gt;&lt;/script&gt;
  &lt;script src="https://helphub.me/js/search_suggestions.js"&gt;&lt;/script&gt;
  &lt;script src="https://helphub.me/js/jquery.geocomplete.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/javascript/jquery.fileupload.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/javascript/vendor/jquery.ui.widget.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://helphub.me/javascript/jquery.iframe-transport.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>