Replace outer $ with jQuery for compatibility