editing JS on index.html for sysmode