First crack at putting Spiro through JSLint. Ugh. What a mess.