Revamp getCharacterObject to be more extensible via plugins

just another thing that could be replaced with a map to be more plugin friendly 
You should use `var`