Debugging JavaScript closures - Browser optimizations we dont want