tidy up bookmarklet a bit