changed response message from Rails
edited and updated response to json responses from Rails to AngularJS.