implemented cc.javascript