Added javascript for the bookmarklet