Is there a reason this is in JS rather than static in the HTML?