add to code.R use of _.keys in place of d3.keys