using a much faster nonrecursive syncLoop built into coffeescript