[TAV-452] Don't use dollar in global scope in js.

Causes problems with applications that use the Prototype library. Much better to
be defensive as a plugin anyway.