Split js for switching slides into it's own file