Once renders your static DOM changes. Therefor encapsulate your static code to make your objects renderable.