evaluate_js_file improved