Finished making the bookmarklet code nice