Systemverilog Class Inheritance Javascript