Why write this as a client-side module and not something that's spit out from the HTML template for the page?