Added directory support in html