using moment js to parse dates