HTML5 - JS MicroMachine Implementation