changed jquery for inserting html with append instead of innerHTML