Javascript Abstract Component Pattern Recognition Examples