Fix str being defined as a global variable
Summary: This variable should be local, not global. This silences a few JSHint warnings.
Test Plan: arc lint
Reviewers: epriestley, Blessed Reviewers
Reviewed By: epriestley, Blessed Reviewers
Subscribers: Korvin, epriestley
Differential Revision: https://secure.phabricator.com/D11068