Modularize helper functions in Name.js