Modify Twitter js code according to new API.