Translated vm.js to coffeescript