@ocharles: $element is empty whenever this function runs, so it's indeed always prepended.