JavaScript Bootstrap Pagination component written in CoffeeScript