add JavaScript Design Pattern

Signed-off-by: chavp <my.parinya@gmail.com>