Append instead of prepend, so that alerts get higher z-index than the rest in the same container.
Little less comments