Fixed jQuery issues