Updated empty tag formatting and added a prototype method