fixed translations in javascript