Fixing global leak of width variable.
Removing var completely as return var width caused other problems.
Merge pull request #34 from charleshimmer/leaking-global

Fixing global leak of width variable.