Changed js to cp.frame methods