Fix DrawingPad sample on Firefox

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