verify that javascripts folder exists before copy and use windows commands on windows

fixes #4