Implementing the browser-fold-bookmarklet into a web UI as opposed to a bookmarklet