Fix closing of ThreesJS in bookmarklet