javascript loops cheatsheet