Getting exercises from server by ajax.