Now the constructor takes an optional $options array which allows json, jsonp and cors responses.
Merge pull request #1 from armandocolpa/master

Now the constructor takes an optional $options array which allows json, ...