rollback _.getComputedStyle and make safer raf