@jmclaus Why is this function declared globally? Use the `var` keyword...