It works when I copy the code into the console but not when I run knithtml.