fixed jQuery bug in popcornlib