script.js file has working AJAX