Close bookmarklet when opening modal