Added ajax to project and fixed minour code convention issues