So I found a solution from Demonstrate the slider value - Online experiments - PsychoPy - slider.getRating doesn’t work on JS, which I did not know!! Use slider._markerPos instead (see Becca’s comment on linked post).
@wakecarter possible addition to the cribsheet?