Apply Self-Leveling Compound in Ajax