adding a coffeescript to paginate the posts