Javascript carousel plugin with a focus on functionality and efficiency