detach bash on windows.

windows don't have bash commands.
so switch to javascript.