Create script.js for CM