bug fix for "js-beautify does not create directory automatically when use '-o' parameter"

Create directory automatically when using '-o' parameter

Closes #270