add debugger to main.js for book button