$().ready( function() {
	alert("Kissat <3");

	// '<div style="width:100px;height:100px;background:blue;">Kissa</div>'

	var words = ['innovaatio','synenergia','multimedia','kissa','sosiaalinen media', 'talvivaara', 'ammattiliitto', 'pääministeri', 'huippu'];
	words = _.shuffle( words );

	var text = $('body').text();
	text = text.toLowerCase();


	var container = $('<div>', { id: 'container'} );

	for(var i=0;i<9;i++){
		var d = $('<div>', { class: 'box', html : words[i] } ) ;

		if( text.indexOf(words[i]) >0 ){
			d.addClass('found');
		}
	    container.append( d );        
    }

    $('body').prepend( container );

})
@@ -1,14 +1,14 @@
-$().ready(
+var init =
  fun
@@ -21,109 +21,154 @@
 ) %7B%0A
-%09alert(%22Kissat %3C3%22);%0A%0A%09// '%3Cdiv style=%22width:100px;height:100px;background:blue;%22%3EKissa%3C/div%3E'%0A%0A%09var 
+%0A%09chrome.storage.local.get(%5B'words', 'foundWords'%5D, function( result )%7B%0A%0A%09%09var words = %5B%5D;%0A%09%09var foundWords = %5B%5D;%09%09%0A%0A%09%09if( ! result.words ) %7B%0A%0A%09%09%09
 word
@@ -298,16 +298,18 @@
 ippu'%5D;%0A
+%09%09
 %09words =
@@ -330,16 +330,340 @@
 rds );%0A%0A
+%09%09%09chrome.storage.local.set( %7B 'words' : words %7D )%0A%0A%09%09%09console.log(%22Uusi j%C3%A4rjestys arvottu!%22)%0A%0A%09%09%7D else %7B%0A%09%09%09words = result.words;%0A%09%09%09foundWords = result.foundWords;%0A%09%09%7D%0A%0A%0A%09%09console.log('??????????');%0A%09%09console.log( foundWords );%0A%09%09display( words, foundWords );%0A%09%7D);%0A%7D%0A%0Ainit();%0A%0Avar display = function(words, foundWords) %7B%0A%0A
 %09var tex
@@ -713,17 +713,16 @@
 ase();%0A%0A
-%0A
 %09var con
@@ -883,80 +883,247 @@
  %3E0 
-)%7B%0A%09%09%09d.addClass('found');%0A%09%09%7D%0A%09    container.append( d );        %0A    %7D
+%7C%7C foundWords.indexOf(words%5Bi%5D)!= -1 )%7B%0A%09%09%09d.addClass('found');%0A%09%09%09foundWords.push(words%5Bi%5D);%0A%09%09%7D%0A%09    container.append( d );        %0A    %7D%0A%0A    console.log( foundWords );%0A    %0A    chrome.storage.local.set( %7B 'foundWords' : foundWords %7D );
 %0A%0A  
@@ -1158,9 +1158,8 @@
 er );%0A%0A%7D
-)

Store history