made it play nice with jquery