Separate Codes To Implement Ajax