Update haspopup.js