Scene graph for games and applications over the HTML canvas element