All api calls written with JS now!! yay!