implement John Resig's class function with a bower config