use 'var' for js local vars