Error logging, using {Track:js}. Also added more console logging to init flow.