Added permissions array in manifest.json. This should solve the problem with the AJAX request.