Fix ReferenceError: onerror is not defined