Added helper function, used get_stat_ranges to create data list for input
cleaned up the Help language a bit
Cleanup and commenting inside the Javascript