Migrate TodoCtrl controller from coffee to js