generate mobile codes constant in regions.js (bug 1099282)

yeah i was thinking about adding jinja2