Changed JS to check for necessary color scheme changes more frequently