getData global syntax fix

fixed syntax error using global, and removed old commented out scripts
Merge branch 'getData-fix-20140221'