Update to Javascript events