var DisplayController = function() { var that = {}; that.draw = function() { console.log("draw"); }; return that; };