1st ajax attempt for books, works but buggy