Refactored bilbo.js
Refactored application controller