what about this approach? http://sugarjs.com/