conflicts with prototype.js

JavaScript Errors when Prototype is used:
check: https://issues.jboss.org/browse/RF-12833

(function(jQuery, richfaces) {
...

instead of

(function($, richfaces) {
...