fix: remove unnecessary parameters to Ajax call

Removed some instances in endpoints.js where authentication credentials are being passed to the Ajax call.
The Ajax call determines authentication credentials internally, ignoring credentials passed in as
parameters to the ajax constructor.