blog post on javascript appending