I get some JS errors when moving this into ```extra_script```. Punting on that optimization for now.