Changed html loader to draw content from elements array instead of container