Refactored Cons equals using the equals method injected in all JS native objects