Fixed cross site issue enabling JSONP format requests

- Now the Api supports two formats: JSONP and by default, JSON.