little optimization in js
images as turning buttons