Changed $ to jQuery to support prototype and jQuery envs