Silly non-self-closing script tags.
s/\t/    /
Modify the smokeform to accept non-smokes properly.
It's things like this, Javascript

This is why everyone uses jQuery.