Extend Emulation for JavaScript.