[js] arrays: support missing items in parsing - add undefined in place