Ajax and API assignments