updated raf
return the observ remove listeners
added a test for count example