Synthesizer for JavaScript API models