Committed till ajax redirect problem