function Controls(node, animation) { this.node = node; this.animation = new animation(node); if (this.animation.init === undefined) { console.error("Animation passed to Control doesn't have an init() method."); } if (this.animation.reset === undefined) { console.error("Animation passed to Control doesn't have a reset() method."); } this.animation.init(); } Controls.prototype.mount = function() { // this.node.style.border = '10px solid purple'; WORKING // right aligned panel, pass in extra custom controls array of nodes // set of prescribed styles } export default Controls;