Guard against JSON.parse(null) and simply return null
Build javascript