r21579: Use utility function to determine function names in ejs code.