Create separate js file for popover script