now works in bookmarklet