Javascript: number array return value marshal