Improve Duration function by normalizing the input object.
Created a new function (normalizeObjectUnits), this is now also used by dateFromObject

Fixed spacing or jshint

Fixed missing argument