add timeout to raf; option to globalize html tags