In Python, you can make use of jinja templating and do this without javascript, but many websites use.