refactoring of js