Cleaned up master js file, condensed getter method for books from the database.