formatting, fixed jshint issues