Update parser.js

Dynamic extends issue