fixed incorrect use of javascript translation