Refactoring to use granular UglifyJS API

This allows for better control of file paths for the source map.
fixes gh-1