Update controller.js

This will fix Issue #5 and allows a route to pop up a modal, but nothing more complex for now