cleanup raphgraph.js

externalize util.js, remove primitive overrides