check for ajax