Changed _.range to for() since sometimes causing trouble in IE