(f) fixes for the StatisticsAvgResults. Closes #30

- The userscript injection code was moved to window.onload handler
- Added check for the scope.Plain property