replace spaces by tab + fix ie10 sniffing