javascript edits, calendar changed to popup