Update reinvestCash.js

Updated to add error handling and removed comment.