made jshint happy (semicolons and functions in loops)