making Js more understandable