Move main.js to corresponding example.