Update "main.js" to v3.0