Simple carousel script for custom layout on pure javascript