refactored books_controller.js to coffee script in file books_control.coffee