added jsonp callback requirement for cross domain ajax requests
made controller function to output all JSON server responses