Read about Python's equal method and implement a JavaScript version of it - isEqual.js