Create haspopup.js