implemented background change by interval using js