JavaScript translation