code: function(e, attr){
  			if(typeof e === "string"){
  				var elem = 
  					document.createElementNS("http://www.w3.org/2000/svg",e);
  			}else{
  				var elem = e;
  			}
  			if(attr){
  				for(var x in attr){
  					elem.setAttribute(x, attr[x]);
  				}
  			}
  			return elem;
  		}
docs: Helpers