add main.js to footer