Changing the powershell working directory to the javascript and html file location and starting the server with 'node filename.js' solves the problem instead of using absolute path to start the server. Attributed to David in the comments from the original post.