Set the target unit on reloadui, fixes #55

Making a library called conditional in the middle of a constructor function is a very verbose strategy. Ultimately making the function harder to read. I'd search for a more readable approach