fixing sorting visualization and clock.js