Added ajax calls to CS3213 server