Run JavaScript code from Ruby