added run_template_{id} rather than use closest

[finishes: #77640110]
@argvader I like this change of getting the href out of the js.