Replaced jQuery append method