simple and smart viewport of Three js