Sync main.js between repo and host