add AdvancedTimer
copy code from <Core HTML5 Canvas>
uncomment some code
uncomment some code
uncomment some code
uncomment code
format code
implements AdvancedTimer