build enhancements

- use Sprockets to write file
- enable minify and compress for JavaScript
- formatting
Merge pull request #1 from mojavelinux/build-enhancements

build enhancements