Attached main.js to client-side