tidied up carousel js