changed api-root to localhost
ajaxSetup added