apdate js > before carousel refactoring