Allow functions within loops (jshint)