Upgraded to twitter api v 1.1, the version 1.0 was deprecated.

Upgraded to the twitter 1.1 api.
This api version only supports json data format
Changed a couple of `var`s for `val`s

Al the changes have been tested on my current application