Rewrote main.js + deleted auto refresh

Main.js looks a lot better now. I deleted auto refresh because it did
work very well. Will rewrite it at some point in the future.
Header button hover fix