added coffescript
fix bug generate