Tweaks to input.js/output.js

Dropped the init of the Firebase obj from its own fund into a global.