Add Cygwin support. Convert *unix-like path to windows path before it is passed to javascripts. Do remember to escape the backslash.