main.js added back