therubyracer gem conditionally loads based on platform.  It embeds the v8 Javascript runtime in Ruby.  Win32 systems are shipped with a Javascript runtime.