Update main.js

Improved Loader to disappear when data are loaded from Firebase and delete a console.log!