var bgpage = chrome.extension.getBackgroundPage();

var wishlist = bgpage.wishlist;
var db = bgpage.db;

window.onload = function(){
    $('.watchlist').empty();
    console.log(wishlist[0].name);

    for(var i=0; i<wishlist.length; i++){
      
      var id;
      for( var j=0; j < db.length; j++){
         if( wishlist[i].name == db[j].b ){
            id = db[j].a;
            break; 
         }
      }
      
      $('.watchlist').append( "<div class=\"item\"><img class=\"icon\" src='http://maple.fm/static/image/icon/" + id +".png'/><div class=\"name\">"+wishlist[i].name+"</div><div class=\"price\">"+wishlist[i].price+" meso or less</div><div class=\"closebtn\"></div></div>" );
    }
}

@@ -163,39 +163,8 @@
     
-console.log(wishlist%5B0%5D.name);%0A
 %0A   
@@ -225,24 +225,205 @@
 r id;%0A      
+%0A      if( wishlist%5Bi%5D.name.search(%22Nebulite%22) %3E= 0 && wishlist%5Bi%5D.name.charAt(0)=='%5B')%7B%0A          id = %22nebulite-%22 + wishlist%5Bi%5D.name.charAt(1);%0A      %7D%0A      %0A      else%7B%0A        
 for( var j=0
@@ -441,24 +441,26 @@
 ngth; j++)%7B%0A
+  
          if(
@@ -499,24 +499,26 @@
             
+  
 id = db%5Bj%5D.a
@@ -535,16 +535,18 @@
     
+ 
+ 
 break; %0A
     
@@ -541,16 +541,18 @@
 break; %0A
+  
         
@@ -556,32 +556,34 @@
     %7D%0A      
+  
 %7D%0A      
 %0A      $('.w
@@ -566,24 +566,25 @@
     %7D%0A      
+%7D
 %0A      $('.w

fix nebulites' icons