[enhancement] Use var instead of function