simple attribute-like widget based on ES5