Sort and tidy Gemfile
Add prerequisites instead of rebuilding them

This allows additional prerequisites to be added without knowing about
each other.
Lint JavaScript files
Shorten long lines in JavaScript to pass lint
Configure konacha for JS testing
Fix JS linting errors