Update parser.js

Parsing href element of gradients.
The function got bigger, i first converted both kind of gradients in only one list because i didn't like code duplication increasing with the parsing of xlink attribute.