It seems like args.unshift(command) would make more sense here. However JSPerf (http://jsperf.com/performance-concat-push-unshift-splice) implies that for most browsers this is faster ...