Added protection if 'callback' is not given
Updated JS docs
[JS] Added ability to have credentials
[JS] Added HttpStatusCode 'enum'
[JS] Added better handling of error responses