Made JS minification friendly and in its own scope