From what I can tell about Python, for example, adding underbars enforces privacy, JavaScript doesn't.
That's not true, an initial underscore is simply used as the convention to indicate that something is private:
>>> class Foo(object):
... def __init__(self):
... self._bar = 48
...
>>> a=Foo()
>>> a._bar
48