added if to bookmarklet