made web,js more concise