Fix JavaScript and HTML for background cycling. #11