Added new non-DOM function to check equality of two objects - isEqual