cleanup in core.js
Merge branch 'master' of https://github.com/jcowles/demo-curve13