Replaced code to support jsonp for GET index.