Big refactoring
Correct javascript slider