implemented cc.javascript

Closes #15