Javascript translation implemented