fixes #2. Introduces dependency on moment.js