replace stray jquery-ism that prevented clearing script on Firefox