Update clips.js

Added class support