System Verilog Array Indexing In Javascript Regular