minification readiness

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