fixed a few errors and added firebase script so we can use firebase