Convert Primitive Int Array To Integer Array Javascript