Fixed filterMarquees function to work with ui-router