created a list of books via for loop over array in JS