reducint dependency on JResig's classing function