CAM.js: fix javascript modeling