Fixed browser compatibility with mouse location