Fixed a bug with append and Prototype 1.5 (via Audun).