Update main.js with bookmarklet.js changes