Adding javascript schenanigans to the web frontend