reference index.js properly in demo