Update main.js

Find current language in mobile view.