ref
From any + adverbial genitive of way (compare always).
anyways (adv.)
16c., anyway (q.v.) with adverbial genitive -s.