Adding right button color when loading through js. Reload every 5 minutes