Modify plotrb.js to dynamically change heights of div elements