[cango] add learning javascript design pattern