Simulates a pointer with jQuery in PhantomJS and the browser.