fix ajax javascript