put code into index.js and linked it to misc.html, hoping that it will do something