add var declaration generation
organize tests for generato as examples
go fmt
rename gen.go -> generator.go
remove some js drafts