The dollar sign ($) and the underscore (_) are permitted anywhere in an ...

...IdentifierName.

See http://es5.github.io/#x7.6