fixing some firebase js