Changed how global shortcuts are attached

To automatically detect the javascript enviornment and attach the global
shortcuts to their proper objects (window for browser, and global for
node)
Added new builds
Migrated all tests to mocha
Created node.js main file
installed node testing dependencies
Created the package.json file
Ignoring the node_modules directory
Updated test script
Updated license field
Fixed the library file path
Updated homepage url