Created the controller within core.js