recommend 
`var data = {};` or `var data = null` instead of `var data = undefined;`