Verilog Function With Variables In Javascript