Nodejs could have been an alternative, but python provides a simple and fast method to run a server on your machine with a single command line.
Using python3, run this command in the directory of the static files
python -m http.server
If using python2, use
python -m SimpleHTTPServer [port]