Fixed endless canvassize + added nodeFromId + added JSON functions