added module defifnition for node
aded isSvg function to accept svg created in jsdom