Add helper functions to Name.js