Fixed build error and typo in $toggleClass