use 13 digits it toJSON call to prevent dates from being converted to scientific notation.
rewrite renderWidget to return pure data