Added new array for storing just the existing tweet IDs and put in a check for this.
Linked up javascript file, previously I had been using jsfiddle to test.