fixed ajax

fixed ajax request. renamed some files. all code functional.