refactored loadtester.js