fixed stack-machine.js to use module.exports
add a bunch of other tests for stack-machine
Merge pull request #66 from tclamb/js-stack-machine-tests

Additional stack-machine.js tests