Adjusting tests for whether jQuery is defined or not and making the plugin act appropriately.