sample code for dart bookmarklet