added javascript for carousel