modularize access of web services with CORS enabled, using JSON directly
to consume the rest service