use admin options credentials as default values for API requests
test type of js errorThrown ajax error param