restructure to enable webpack and browserify
restructure to enable webpack and browserify