That’s very interesting!
Great debugging my friend.
My bet is that on the ‘problem’ install, there is a server setting or .htaccess setting that is preventing the input.php file to be used as a .js file
If you head back to the old support site, there is a featured post on input.php 404
You may find some useful info there!