Gcodeviewer: fix some JS warnings
Gcodeviewer: fix some JS warnings

foosel/OctoPrint,foosel/OctoPrint,foosel/OctoPrint,Jaesin/OctoPrint,Jaesin/OctoPrint,Jaesin/OctoPrint,Jaesin/OctoPrint,foosel/OctoPrint