fixes not stripped file extensions for .json and .html 

fix)