load books from javascript