Fixed JS translations global scope