Improved cross browser compatibility in mouse location detection