Little javascript mixin