javascipt basic mixin