updating design pattern JS files