Browserify

Adapted module structure to browserify and module.exports