Create controller.js

tis the basics