renamed attachTo to appendTo to match jquery