Do you think it's not a good idea? That'd also remove the need for the separate `begin_recursive_scan_for_potential_js_files` function.