Added new Javascript file to handle ajax call