This article on JavaScript Closures is a must-read for anyone writing even moderately complex JavaScript. Contrary to popular belief, JavaScript is not just a toy scripting language just for validation and UI special effects; it has complexities and subtleties on par with the big guns.