JavaScripts drivers emulate browser behavior and browsers might download these files instead of opening them.