improved javascript popovers