Adding JS code for the language transition.

Signed-off-by: Thomas Marques <marquesthom@gmail.com>