JS: InsertAfter and AppentTo