1. Safari does not support XMLHttpRequest.responseType="json". Change to text. 2. Fix a typo