Make located js files compatible with yii location.

When use e.g. pt_br on yii config file for language, some js files can't
be included 'cos the name of the language is wrong pt-BR should be
pt_br.