Template including preloader for HTML5 canvas applications