add toggleClass method.

matches jquery, except taking a function as a param