Add documentRoot() function to helper file.