Change the url variable in the code as follows:
http://api.twitter.com/1/statuses/user_timeline/mytwittername.json?count=3&include_rts=1&callback=?
The magic is in the include_rts=1 parameter, which will force retweets by the target user to be included in their timeline.
The statuses / user_timeline method does not require authentication, however, if you perform authentication, you will receive an additional 200 API calls per hour. Please note that twitter.com REST methods are no longer supported, so be sure to use the API methods with the version when interacting with Twitter.
source share