Low High Step Condition JavaScript