added readme and text header to main.js file