Basic JavaScript mixin paattern