dynamic template loader for express