Code refactoring of areSame module

areSame(node1, node2) is broken up into

    tagsAreEqual(node1, node2) - This module checks if both the nodes
    are the same

    tagsTextAreEqual(node1, node2) - This module checks if both the
    nodes text are the same

    tagsAttributesAreEqual(node1, node2) - This module checks if both
    the nodes attributes are the same

    getNodesChildren(node) - This module gets the node's children

    stripNodeText(node) - This module strips the node text if available
    otherwise returns an empty string