General fixes for different window sizes

Also a problem with the iOS CSS.
Gives the correct number

The CSS and JS will both change at the same time now.
Full background images on wide pages
Merge pull request #13 from seaside98/master

Better support for odd window shapes