javascript to tweak carousel