Fixed uglify bug for angularjs