added "var reader = this;"

"var" is necessary here for JS minification to work properly, otherwise an error will be thrown ("reader undefined").