Added ajax call and merged js files