And you don't show in your code where your are including the jQuery library. Are you?
And the only code I see there that will move to the next image is based on a button click. So, no, it's not going to autoplay.
Do you want to retain the button click stuff? Or just toss it?
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.