fix(date.js) service can be a factory