Added new popup JS to template