some perf improvements on test.js. Now iphone should not heat up just leaving it idle