add jslint cfg and reformat