Struggling with JavaScript JSON2CSV