add javascript class and add bookmarks