  
$(document).ready(function() {

function loadData() {
	var $body = $('body');
	var address = $('#input').val();
	var streetViewUrl = 'https://maps.googleapis.com/maps/api/streetview?size=870x490&location=' + address + '';
	
	var myPic = "<img class="bgimg" alt="cant load the image" src=' + streetViewUrl + '>";
	$('.top').css('background-image', 'url(' + streetViewUrl + ')');
}

$('form').submit(loadData);


}); //end ready

@@ -221,16 +221,60 @@
 ress + '
+&key=AIzaSyBc63fHmkGW4jWBUGgzHFVoQA_sTxW3TfM
 ';%0D%0A%09%0D%0A%09

Update streetview.js