minor fixes for custom.js.