Solves javascript's infamous closure behavior in loops