Update parser.js

better solution for transform matrix. also removed id attribute from cloned node to avoid failing later with doc.getElementById() ( case in wich you use two times the same tag with an id )