refactored the bookmarkelt code so we can externalize html and css