fixed Firefox double coordinates

Added parseInt to force Firefox X & Y values into integers.