Add repeatFinish.js for handle repeat finish event