added date formatting to poly.js