See http://albatrossdigital.github.io/widgetcommon