changing the bookmark javascript to reflect the changes of the new close button