Updated javascript on book management.