Update JavaScript examples