JavaScript: local variable