Fix production mode issue and etc.

- fix the issue for NODE_ENV=production
- update html "lang" to match the actual content language
- add a simple locale determination for demo purpose