solving issues with minifying and angularjs