Bug 922463 - rewrite build/multilocale.py in javascript