Implemented the ajaxify function. This must be used whenever ajax related things will be implemented. Default success function and error function were also implemented.