Change in script.js to make ajax response valid