jslint optimization of js