fix(clickToCode): get input from scope variable rather than element innerHTML