adjusting api folder and js