areArraysEqual

JS function to compare two array for equality