renaming refactor javascript files for migrants and periphery