moved background rotation code to background.rotation.js