Browsing: JavaScript closures and hoisting