Fix an escaping bug in Windows and JSHint errors