Create cutrod.js

cut rod problem:
 dynamic planning algorithm example in JavaScript.