Restructure directories of the JS part