buttons are not pseudo elements, also javascript

Changed the buttons to real elements, have not yet added the onload
change to simple buttons (for non-javascript compat)
Also fixed a small issue when window resize fires more than once that
caused weird delays when clicking tiles.