moving factory(services) and directive into single js files