process html file to retrieve script specified by relative path