Committing popup close JS.