posts.js now turns dates into date objects