move script to custom.js