Fixing index-async to work with ui-router