add QUnit JavaScript Design Pattern

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