replacing more whiles with coffeescript-style fors with splats