JavaScript REST Api for Firebase