Fixing jQuery on tab loading