Averaged variables giving NaN?? Plz help

as of now, you calculate avg1-4 on change, but you calculate the final average once the page is ready which occurs before any change is made, so no wonder it gives you NaN.
You need to run the final average after you retrieve the 4 averages.