added javascript formatter
apply new js formatter
fix jslint warning