Added Popup object
Updated define call at top of scripts