fix for compiled js dependency injection problems