Update parser.js

Changed parsegradient to consider href element