NXP-12100: fix js code keeping file inputs on firefox, making it handle only local inputs instead of all inputs on the page