added cleanup
added bookmarklet code