quick fix for date issue.
Fix for populate.js
Merge pull request #261 from kmeurer/master

Two small changes to the prior pull request that solve some glitches.