Popup bootstrap, Use of class for javascript