Changed code style - CP.js