JavaScript_DesignPattern