added isSvg function which checks if node is an svg element
added module defifnition for node