refactored Badgerfish DOM decoration