Create emulation.js

Create a JavaScript Control for emulation