http://jslinterrors.com/dont-make-functions-within-a-loop/