fix "not enough arguments to cloneNode" error in old FF - closes #597