Changed mouse movement handler from jquery to native JS