demo working in index.html