javascript to activate popovers