changed JS dir structure