You can also use python to start a simple webserver also.
Navigate to the folder to use and enter:
python -m SimpleHTTPServer 8000
The number at the end is the port to use, open your browser and visit http://localhost:8000 You can use the default of port 80 if you wish and remove the port number entirely.
I really like the recursive logic using magic constants! Bonus points for not using a loop - array_map :)