// Public Key
// 6f769846a34acb7b0299a000d488f562

var private_key = '63823d9c3343ef191f88b0f44c0dbe6d7cce7e4e';
var public_key = '6f769846a34acb7b0299a000d488f562';
var id = '1009610';
var ts = new Date().getTime();
var string = ts + private_key + public_key;
var hash = CryptoJS.MD5(string);

$(function(){
var marvelAPI = "http://gateway.marvel.com:80/v1/public/characters/id?ts="+ts+"&hash="+hash+"apikey="+public_key;
//$.getJSON( marvelAPI, {
    //apikey: '6f769846a34acb7b0299a000d488f562'
  })
    .done(function( response ) {
      	var results = response.data.results;
      	var resultsLen = results.length;
      	//var output = '<ul>'; 
      	var name = '';
	  
	//var name = results
      	for(var i=0; i<resultsLen; i++){
        	//if(results[i].images.length > 0) {
          		name += results[i].name;
			//output += '<li><img src="' + imgPath + '"><br>'+results[i].title+'</li>';
        	//}
      	}  
      	//output += '</ul>'
      	//$('#results').append(output);
	$('#h1').append(name);
  });
   
});

@@ -1,56 +1,4 @@
-// Public Key%0D%0A// 6f769846a34acb7b0299a000d488f562%0D%0A
 %0D%0Ava
@@ -190,20 +190,16 @@
  private
-_key
  + publi
@@ -199,20 +199,16 @@
 + public
-_key
 ;%0D%0Avar h
@@ -238,16 +238,20 @@
 ng);%0D%0A%0D%0A
+%0D%0A%0D%0A
 $(functi
@@ -258,32 +258,85 @@
 on()
+)
 %7B%0D%0A
-var marvelAPI =
+%09%0D%0A%09var $header = $('#h1');%0D%0A%09%0D%0A%09$.ajax(%7B%0D%0A%09%09type: 'GET',%0D%0A%09%09url:
  %22
+'
 http
+s
 ://g
@@ -356,11 +356,8 @@
 .com
-:80
 /v1/
@@ -374,18 +374,23 @@
 racters/
-id
+1009610
 ?ts=%22+ts
@@ -413,17 +413,19 @@
 apikey=%22
-+
+ + 
 public_k
@@ -430,123 +430,59 @@
 _key
-;%0D%0A//$.getJSON( marvelAPI, %7B%0D%0A    //apikey: '6f769846a34acb7b0299a000d488f562'%0D%0A  %7D)%0D%0A    .done(function( response 
+,%0D%0A%09%09success: function(data)%7B%0D%0A%09%09%09//console.log(url
 ) %7B%0D
@@ -480,33 +480,32 @@
 g(url) %7B%0D%0A      
-%09
 var results = re
@@ -506,15 +506,11 @@
 s = 
-respons
+dat
 e.da
@@ -524,25 +524,24 @@
 lts;%0D%0A      
-%09
 var resultsL
@@ -568,19 +568,16 @@
 %0D%0A      
-%09//
 var outp
@@ -586,12 +586,8 @@
  = '
-%3Cul%3E
 '; %0D
@@ -597,60 +597,16 @@
     
-%09var name = '';
 %0D%0A
-%09
   
-%0D%0A%09//var name = results%0D%0A      %09
+    
 for(
@@ -643,17 +643,16 @@
         
-%09
 //if(res
@@ -695,136 +695,155 @@
     
-%09%09name += results%5Bi%5D.name;%0D%0A%09%09%09//output
+//var imgPath = results%5Bi%5D.images%5B0%5D.path
  +
-=
  '
-%3Cli%3E%3Cimg src=%22' + imgPath + '%22%3E%3Cbr%3E'+results%5Bi%5D.title+'%3C/li%3E';%0D%0A        %09//%7D
+/standard_xlarge.' + results%5Bi%5D.images%5B0%5D.extension;%0D%0A          output += '' +results%5Bi%5D.name;
 %0D%0A      
 %09%7D  
@@ -842,20 +842,19 @@
     
-%09%7D
   
+%7D
 %0D%0A      
 %09//o
@@ -853,108 +853,72 @@
     
-%09//output += '%3C/ul%3E'%0D%0A      %09//$('#results').append(output);%0D%0A%09$('#h1').append(name);%0D%0A  %7D);%0D%0A   %0D%0A%7D);
+%7D %0D%0A      $header.append(output);%0D%0A  %7D);%0D%0A%09%09%09%09%0D%0A%09%09%09//%7D%0D%0A%09%09%7D%0D%0A%09)%0D%0A%7D
 %0D%0A

Update spiderman.js