Updated demo.js to include API URL.