fix dependecy injection for loading module and mangle vars on uglify