Virtual Machine prototype in JavaScript