Added globals.js and index.js, made this a node module