Pytrhon to JavaScript translation demo