Fixed bug with initialisation of lastY position within javascript. Added printing of unhandled events in server