new js file for CM