Removed / from API.post.
Added SITE_URL to ajax: url ...