Ensure creation of results directory, if it doesn't already exist
Fixed encoding issue
Moved javascript from github.html to separate JS file