Add AJAX request to onMainLoad