Wired up Console Js and refactored components to separate files