changed ways of searching js and css files: now it search through the directory where the html file is