removed ajax proxy file, added ajax check in index