Shapping and cleaning the file javascript/main.js