added firebase javascript for future features