JavaScript Engine for Building 2D Element with HTML5 Canvas