A good post on javascript mixin

https://javascriptweblog.wordpress.com/2011/05/31/a-fresh-look-at-javascript-mixins/