correcting format according to jslint