Update script.js

Update API Endpoint