moved custom.js to top level