The $() function (it is a legal name in Javascript) is an idea stolen from Protoype. It is deprecated in DWR to avoid clashes with Prototype and JQuery.
$()
It's best to transition to byId().
byId()
DWR: Easy Ajax for Java DWR allows JavaScript in a browser to interact with Java on a server.
DWR support is available from SitePen.