Rename logic to controller.js