Moving methods of Facade.js into constructor class - bug fix