Refactoring existing code in JavaScript