added controller
Merge pull request #1 from benhalverson/controller.js

added controller