code preparation for performance test on jsperf.com