Separated javascript, sliders make 4 triangles