Adds support for bookmarklet