Update cradle.js

with JSON.stringify, the problem from #265 is fixed for first. If there are side effects, I couldn't check by now.