Javascript Object Array Addition In Verilog Using Function