refactors mixin of functionality in heinzel.js