strip off a lot of stuff and adjust to make the project with and build with browserify