optimize images, JSLint optimization