Fixed so that it works with jQuery.noConflict()