JavaScript でクラスを作る
function Controller(){ this.f = function(){ print('function!!'); } } var c = new Controller(); c.f(); # => function !!
function Controller(){ this.f = function(){ print('function!!'); } } var c = new Controller(); c.f(); # => function !!