updated treemap.js to handle invalid size input