Added interval ajax calls to server. Isn't working