Wrap reset element.css() in timeout. Fixes scope issues in Angular.