Fix jshint problems
Add cc.extend() function