generate dox var into js