Attempt to fix ResourceLoader JS issues on 1.20