Added Ajax to talk to the backend