Made some small edits to make compatible with express 3.x and UglifyJS2