modified index to be IIFE, updated other files
modified styles slightly, anf fixed a bug with getting more articles in different states