build enhancements

- use Sprockets to write file
- enable minify and compress for JavaScript
- formatting