Refactor twitter javascript files.