Numerous coffee to js bug fixes. Added moment as a dependency.