PHP to JavaScript converter and VM written in JavaScript