Update bookmarks on basis of currently added categories working. Refactored jQuery