Update JavaScript emulator