Changed properties x and y to _x and _y for ios safari