Javascript Set Array To Another Array In Math