Update clips.js

Added looping