this is not a correct solution
what this example does is to serve an html file from node, then run canvasjs in the browser
what the user was actually requesting was to run canvasjs in node, so that they could produce images as static assets, and not have js run in the browser at all