Update spanDir.js

replace backslash to slash(for windows)