tweaked some javascript for the tweeting functionality