Don't set the `self` variable with `var`

Firefox directly shadows the global variable `self` if it is present (= in a worker). So we need to set `self` without `var self` but directly.