bugfix for TS function generation
correct indentation for JS maps
type corrections for thrift TS definitions