Popup view markup and initial js