Rscriptify statsPage.R for command line usage