Javascript design patterns still not yet started checking it