Second Working Version

Limit variables to function scope with var...