Fix a simple mistake that make native JSON.parse never been used

```javascript
window.JSON.parse === 'function'
```
should be
```javascript
typeof window.JSON.parse === 'function'
```