InfoMetro div referenced outside of function