Click event.x changed to event.clientX for non-chrome supprt