Allow incorrect end dates (at midnight of following day) to be adjusted back to previous day
Sort module data where 'period' is present eg. single_timeseries
JSHint