Migrated assetService into a proper Angular service and injected as dependency in controller