book catalog using javascript