Useful mixins for JS objects