Tring to figure out what causes JQuery problems