added fire base and split out js