Add JRuby support, make JavaScript runtime a soft dependency