Changed the code to use vm.define. Do'h