$ replaced with jQuery to support no conflict mode