fix error ExecJS::RuntimeError
Quick and dirty solution