You can't make admin API requests via client side JavaScript. That will violate the cross-domain policy and can also result in private data leakage.
If you want to work with customer facing aspects you can use the AJAX API which has support for JSONP so you can make cross-domain requests.