razbijanje main.js u directives i services