Moved user assignment out to global JS.