Update clips.js

in strict mode and added to mag namespace