Add action graph JavaScript.