fixing controller to actually return result to client properly. An example of this ajax request is illustrated in simple.html.erb