Update duration.js

Added missing semicolons to make JSHint happy.
Merge pull request #2 from pdehaan/patch-2

Update duration.js