optimize angularjs service txt file