Fixed brittleness of dependencies with jQuery