javascript module pattern with mixins