fixed: when trying to find the script file in the folder, .html should be ignored.