Played around a little with the javascript widget facade.