moving script from custom.js to home bottom page