Cleaned up JS Dialog view renderer.