Javascript translator with plural forms support