fix JavaScript type generation and fix JavaScript Intellisense for subsequent fields