Fixed bookmarks to handle new "root" location from previous commit.

The previous commit which adds the `addJS` method moved the location of the "root" object, without updating all of the references to this object. As such, the `addBookmark` method was returning an error. This pull request fixes the issue (I think).