Fixed xSpacing scale and removed jQuery