Allow functions in loops.
JSHint clean up.