Fixing dependency injection to support minification