Remove usage of this in anonymous function

JS' this are tricky. In that scope, this isn't what we expected it to be.