run Hivm in JavaScript (WIP)