Update index.js

Keywords "function" and "event" in controller are now replaced by "fn" and "ev"