Cleaned up JS and prepared new file for z-score calculations.