use helper function to generate templates urls to avoid hardcoded urls

use helper function to generate templates urls to avoid hardcoded urls in mustache templates
Thanks