I was considering this as well. I tmight be a bit more complicated. I will do a jsperf compare to see which one is better.