function parseResponse(data) {
	var bookshelf = document.getElementById("bookshelf");
	
	for (var i=0; i<1; i++) {
		var cover = data.reader_books[i].book_edition.covers.cover_medium;
		var title = data.reader_books[i].book_edition.title;
		var author = data.reader_books[i].book_edition.authors.author;
		var permalink = data.reader_books[i].permalink;

		
		var link = document.createElement("a");
		link.setAttribute("href",permalink);
		
			
		var img = document.createElement("img");
		img.setAttribute("src",cover);
		img.setAttribute("alt",title);
		
			
				
				link.appendChild(img);
				bookshelf.appendChild(link);	
					
				

	}		
	
	
	
	 {
					
			var link = document.createElement("a");
			link.setAttribute("href",permalink);
			
				
			var text = document.createTextNode(title);
				
		
					link.appendChild(text);	
					bookshelf.appendChild(link);	
					
					
					
	
		}	
		
		
		{
						
				var authortext = document.createElement("p");
				authortext.setAttribute("title",author);
				
					
				var by = document.createTextNode(author);
					
			
						authortext.appendChild(by);	
						bookshelf.appendChild(authortext);	
						
						
						
		
			}	
	
	
	
	
}



