Run JavaScript code from Python