Fixing type in $toggleClass