[main.js] got initial (buggy) implementation of a monitoring/controlling gui and a graphical object being drawn on the canvas