$.formatChange.media got assigned before it was defined ...