Change parseJSON to return undefined