javascript for loop without index