Setting a value to a status pane

Nimsay Ramsey
22 Dec 2018, 18:41Edit: I fixed the problem. Please disregard this post
I'm trying to set a custom attribute to the status pane but it doesn't show the attribute, only the words.
JS.setCustomStatus ("Bag Weight: " + player.weight + "lbs")
it should output something like this:
Bag Weight: 20lbs
the status pane documentation page is really hard to read and I'm stuck with the online editor currently. Does anyone know what I'm doing wrong?