Merge pull request #125 from jorr/feature/global-js-runtime

Refactor JavaScript runtime into a global object