mouse coords compatible with firefox and chrome