fixed non jquery ajax call