First go at moving js to coffeescript for new date setup