AJAX test and use production mode