Support swfobject's markup and minor optimizations.

Fixes for issue #36.

Also, I cleaned up some tab spacing issues, and removed some unnecessary DOM traversal.