Added ajax file and updated main file