Update parser.js

Delete function from parser. moved in element parser.
Update elements_parser.js

Added mono-object resolveGradient function. to be called befor reviver function.
Merge pull request #1595 from asturur/Load-Gradient-before-reviver

Load gradient before reviver