Fix the JS bug in Ajax