used correct mouse coords- works on firefox/safari