fix 'f' postfix for numbers in kite-mode
use 'var' when binding variables in js codegen