Made js and php api to go in seperate folders