Added helper javascript for start and end date widget.

Add js as helper instead of global. Remove upgradestep.