Made jshint valid, tidy of durationparsing