Updates to d3js psom integration

Started adding in removal of links. Also performed a Lint on the PSOM
file, which uncovered some vulnerabilities that are now fixed.