Use js date instead of timestamps for dayClick
Remove some references to duration
Remove some references to 'duration'