Change `pageerror` event => `jsError` event