Add console functions
Add setTimeout and setInterval, also fix raf behavior