Update script.js

Remove redirect to homepage from response.