Improving security with AJAX calls support