split out coffeescript and js
Add sorting by percentage