Update elements_parser.js

Changed Resolvegradient function for fill and stroke