Update parser.js

Add support to viewbox attributes.
As suggested from w3c reccomendation, viewbox can be translated as a big g element that involve all svg document and has a scale and translate transformation derivate from viewbox attributes and width and height attributes.

Still it need some trick for some aspect ratio but to me it looks like it work simply and good.

Also removed one nesting level from parseUseDirectives function