jshinted the code