Added Ajax request

Added an ajax post request to obtain new json reponse