refactoring resumeBuilder.js