fixed memory leak, completely new rendering

still works only if gcode storage is located somewhere inside www
directory