Use ajax instead of post (for which externs were failing)