initial browserify/app refactor