Add comment for util.formatTime
Add jshint, fix jshint errors
Use better var names for levels + slight refactoring for speed