Add README, LICENSE and package.json.
Correct spelling of "JavaScript".
Wrap g.js in a function scope.

Also add support for module loading for Node and require.js/AMD.
Make the tests pass.

We now use jasmine-node as the test runner.
Use proper formatting for the license file.