overwrite mouse events to work properly on phantomjs