Create emulator.js