ensure we've properly scoped everything with 'var'