Add main.js for document