libjs scope closure because minifier broke it