a collection of scripts written with js to demonstrate design pattern