add dueDate to Cakes, jqueryui, moment, refactor js unit tests