
//values
var private = '63823d9c3343ef191f88b0f44c0dbe6d7cce7e4e';
var public = '6f769846a34acb7b0299a000d488f562';
var id = '1009610';
var ts = new Date().getTime();
var string = ts + private + public;
var hash = CryptoJS.MD5(string);


$(function()){
	
	var $header = $('#header');
	
	$.ajax({
		type: 'GET',
		url: "http://gateway.marvel.com:80/v1/public/characters/id?ts="+ts+"&hash="+hash+"apikey=" + public,
		success: function(data){
			//console.log(url) {
				$.each(data, function(i, item){
					$header.append('' + item.data.results.name + '');
					
				})
				
			//}
		}
	})
}

@@ -1,14 +1,24 @@
-%0D%0A//values
+//this will not work
 %0D%0Ava
@@ -256,18 +256,18 @@
 %0D%0A%0D%0A
-$(
+%0D%0A
 function
 ())%7B
@@ -266,15 +266,21 @@
 tion
-())%7B%0D%0A%09
+ getMarvel()%7B
 %0D%0A%09v
@@ -288,21 +288,17 @@
 r $h
-eader
+1
  = $('#h
 eade
@@ -297,54 +297,24 @@
 ('#h
-eader
+1
 ');%0D%0A%09
-%0D%0A%09$.ajax(%7B%0D%0A%09%09type: 'GET',%0D%0A%09%09url:
+var url =
  %22ht
@@ -399,53 +399,48 @@
 ey=%22
- + 
++
 public
-,%0D%0A%09%09success: function(data)%7B%0D%0A%09%09%09//
+;%0D%0A%09alert(hash);%0D%0A%09alert(url);%0D%0A%09
 cons
@@ -455,143 +455,149 @@
 url)
- %7B%0D%0A%09%09%09%09$.each(data, function(i, item)%7B%0D%0A%09%09%09%09%09$header.append('' + item.data.results.name + '');%0D%0A%09%09%09%09%09%0D%0A%09%09%09%09%7D)%0D%0A%09%09%09%09%0D%0A%09%09%09//%7D%0D%0A%09%09%7D%0D%0A%09%7D)%0D%0A%7D
+;%0D%0A%09$.ajax(%7Burl: url, context:$h1%7D).done(function(data)%7B%0D%0A%09%09$('#results').html('');%0D%0A%09%09$('results').append(data.name);%0D%0A%09%7D)%0D%0A%7D//end of function
 %0D%0A

Update spiderman.js