Prevent read errors for non-js files