CCBoot.js prepare function (cc.error is not define)