fix firefox [object XMLDocument]
add FileWatcher