reformatted jsd parser and fixed jshint warnings/ errors