Store language in js variable.

Signed-off-by: cocolekat <cocolekat@gmail.com>