Update JavaScript event model