Switched to global use of jquery