jsで軽くクラス書きたい時のClass定義関数 ref: http://qiita.com/bobby_smv/items/d464198c4fbdb346a57d