Add checks
 * integer 0 and string "" are false in javascript
 * 0 and "" are not sent correctly w/ original version of code
generate w/ thrift 0.9.1
add "var " for file local declarations