Sanitized user input on client side and cleaned bookApp.js code some.