get rid of the two versions, the larger version is barely slower than the other one, see http://jsperf.com/joint-js-testing-2-arrays