Set AJAX flag, only use one of ready/onload