JS rename refactoring