moving main.js to example folder