Testing environment for emberjs, using mutation observers rather than setTimeout function