linted

added missing semicolons and moved the global anonymous function into a closure
Merge pull request #1 from jakob-stoeck/patch-1

linted