use the value of htmlext variable for html file extension, instead of static ".html".