Convert JCAMP data to javascript objects