popup fixes
rf
setimmediate, requestanimation frame
Merge branch 'master' into chrome_popup