test simple carousel in javascript