Update script.js

Add url to request an apikey