fixes #630

This was broken because I replaced ``Date.js`` (which is an orphaned library whose developer stopped maintaining it and never handed it off to anyone) with ``moment.js`` (which is a very similar library but is actively developed).