Convert Google Books lookup to JS class