Adding support for Duration.js