How to Add Value Labels to a Column through JSL

On my main table (Table 1), I have a column called "Bin" which holds any number (corresponding to the column "Bin Number" entries on another table which is Table 2). Now I want to assign Value Labels to this column "Bin" through script. The value labels would be coming from Table 2 with two columns: "Bin Number" and "Description".

is simple enough. However I am struggling with how to create the expression with the value labels being dynamic and formulated from whats on the other table. On the above code, "1, 2, 3,..." are entries for "Bin Number" while "Cool, Awesome, Bad,..." are entries for "Description" from Table 2.

Here is one way to handle the issue. It basically creates a string that contains the specific structure needed. Then add it as an element into the list required to be used to add the Value Labels to the column.

Here is one way to handle the issue. It basically creates a string that contains the specific structure needed. Then add it as an element into the list required to be used to add the Value Labels to the column.