assets added properly, but too much is done in directive as opposed to service