var gAPI = 'https://www.googleapis.com/books/v1/volumes?q=';
if(self.type)
gAPI += self.type + ':';
gAPI += self.$elm.val();
gAPI += self.$elm.val().replace(/\-/g, '');
gAPI += '&maxResults=1';
$.getJSON(gAPI, function (response) {
if(response.totalItems == 0) {
-