loads javascript before elements, so color does not flash on load