anchor.diff:  		    };
   		    xhr.onerror = function() {
   		        alert("Could not upload file.");
  -		    };
  +		    };	
   		    xhr.send(file);
   		}
positive.code: 		})();
  		function get_signed_request(file){
  		    var xhr = new XMLHttpRequest();
  		    xhr.open("GET", "/sign_s3?file_name="+file.name+"&file_type="+file.type);
  		    xhr.onreadystatechange = function(){
  		        if(xhr.readyState === 4){
  		            if(xhr.status === 200){
  
negative.code: 
  				form(method="POST" action="/submit_form")
  					input(type="hidden" id="photo_url" name="photo_url")
  					input(type="text" id="title" name="title" placeholder="Enter a title" size="40")
  					br
  					br
  					input(type="submit" value="Upload your photo")
  