JavaScript Aspect Ratio controlled slider