another stab at autoclose for bookmarklet