so, why not answer my question and say how you'd do it in js...?

[deleted]