adding demo.js to the static index.html