Add Cygwin support. Convert *unix-like path to windows path before it is passed to javascripts. Do remember to escape the backslash.
Merge pull request #11 from ArthurTu/master

Fix path bug on cygwin.