Javascript: Number array types