extends javascript object, giving nice syntax for mixins in javascript