fix scope issues in twitter.js