Working node module

Currently the NodeJS version is working as expected but looking to
browserify the client. Also trying to return a constrructor from the
NodeJS module (Should be in subsequent commits to this branch)